#include "del_and_mod.h"

void modifyNode(list_head head, day_data DATA) {
	linked_list *p = head->next;
	
	while(p!=NULL){
		if(p->data.number == DATA.number){
//		if(p->data_data.number == DATA.number){ // DID YOU MEAN "data"
			p->data = DATA;
//			p->data_data = DATA; // DID YOU MEAN "data"
//			printf("The %dth task has been modified successfully!\n",DATA.number);
			return ;
		}
		p = p->next;
	}
//	printf("Sorry, we don't find this task, please check the number you input.");
}
